import request from '@/utils/request'

export function loadTeamCategoryItem() {
  return request({
    url: '/system/teamCategoryItem/all',
    method: 'get'
  })
}

// 查询组队品类列表
export function listTeamCategoryItem(query) {
  return request({
    url: '/system/teamCategoryItem/list',
    method: 'get',
    params: query
  })
}

// 查询组队品类详细
export function getTeamCategoryItem(id) {
  return request({
    url: '/system/teamCategoryItem/' + id,
    method: 'get'
  })
}

// 新增组队品类
export function addTeamCategoryItem(data) {
  return request({
    url: '/system/teamCategoryItem',
    method: 'post',
    data: data
  })
}

// 修改组队品类
export function updateTeamCategoryItem(data) {
  return request({
    url: '/system/teamCategoryItem',
    method: 'put',
    data: data
  })
}

// 删除组队品类
export function delTeamCategoryItem(id) {
  return request({
    url: '/system/teamCategoryItem/' + id,
    method: 'delete'
  })
}

// 导出组队品类
export function exportTeamCategoryItem(query) {
  return request({
    url: '/system/teamCategoryItem/export',
    method: 'get',
    params: query
  })
}